package com.baomidou.springmvc.common.result;

public enum ResponseCodeEnum {
	SUCCESS(200,"SUCCESS"),
	ERROR(100,"ERROR"),
	
	USERNAME_ERROR(1000,"用户不存在"),
	PWD_ERROR(1001,"密码错误");
	
	private final int code;
    private final String desc;


    ResponseCodeEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
